package com.fht.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;


@Setter
@Getter
@ToString
@Entity
@Table ( name ="statement_order_particulars" )
public class StatementOrderParticulars implements Serializable {

	private static final long serialVersionUID =  556123653490207133L;

	/**
	 * 主表ID
	 */
   	@Column(name = "id" )
	private String id;

	/**
	 * 菜品ID
	 */
   	@Column(name = "record_id" )
	private Integer recordId;

   	@Transient
	private String recordName;

	/**
	 * 交易方式
	 */
   	@Column(name = "means_exchange" )
	private String meansExchange;

	/**
	 * 数量
	 */
   	@Column(name = "num" )
	private Integer num;

	/**
	 * 金额，自己计算
	 */
   	@Column(name = "total" )
	private String total;

   	@Transient
	private Integer price;


	/**
	 * 收银员
	 */
   	@Column(name = "cashier" )
	private String cashier;

	/**
	 * 创建时间
	 */
   	@Column(name = "created" )
	private String created;

	/**
	 * 店铺ID
	 */
	@Column(name = "merchants_id" )
	private Integer merchantsId;

}
